var User = require('./User');
function Teacher(id,name,age){
	// 构造方法初始化
	User.apply(this,[id,name,age]);	//apply继承

	this.teach = function(res){
		res.write(this.name+'讲课');
	}

}

module.exports = Teacher;